Ingress processing optimization via traffic classification and grouping

ABSTRACT

An arrangement is provided for ingress processing optimization via traffic classification and grouping. A plurality of packets are classified according to a classification criterion. The classified packets are used to generate a packet bundle containing packets that are uniform with respect to the classification criterion. The packet bundle and its corresponding packet bundle descriptor are transferred to a host which then processes the packet bundle as a whole according to the information contained in the packet bundle descriptor.

RESERVATION OF COPYRIGHT

This patent document contains information subject to copyrightprotection. The copyright owner has no objection to the facsimilereproduction by anyone of the patent document or the patent, as itappears in the U.S. Patent and Trademark Office files or records butotherwise reserves all copyright rights whatsoever.

BACKGROUND

Aspects of the present invention relate to communications. Other aspectsof the present invention relate to packet based communication.

Data exchange between independent network nodes is frequentlyaccomplished via establishing a “session” to synchronize data transferbetween the independent network nodes. For example, transmission controlprotocol/Internet protocol (TCP/IP) is a popular implementation of sucha session method. Data transferred over such an established session isusually fragmented or segmented, prior to transmission on acommunication media, into smaller encapsulated and formatted units. Inthe context of input and output controllers such as Ethernet MediaAccess Controllers (MACs), these encapsulated data units are calledpackets. Since packets are originally derived from data of somecommunication session, they are usually marked as “belonging” to aparticular session and such marking is usually included in (orencapsulated in) the packets. For instance, in a TCP/IP session, networkaddresses and ports embedded in the packets are used to implementper-packet session identification.

When packets of the same session are received at a destination, they maybe temporarily stored in a buffer on an I/O controller prior to beingfurther transferred to a host system where the packets will bere-assembled or defragmented to re-create the original data. The hostsystem at a destination may be a server that may provide networkservices to hundreds or even thousands of remote network nodes.

When a plurality of network nodes simultaneously access a common networkresource, packets from a communication session may be shuffled withpackets from hundreds of other different sessions. Due to thisunpredictable data shuffling, a host system generally processes eachreceived packet individually, including identifying a session from thereceived packet and accordingly identifying a corresponding session onthe host system to which the received packet belongs. There is anoverhead on the host system associated with such processing. Inaddition, when a data stream is transmitted continuously under acommunication session, each received packet, upon arriving at the host,may need to be incorporated into the existing data stream thatconstitutes the same session. Using newly arrived packets to update anexisting session is part of the re-assembly or defragmentation. Thisfurther increases the overhead on the host system. Furthermore, theoverhead may increase drastically when there are a plurality ofconcurrent communication sessions. High overhead degrades a hostsystem's performance.

When notified of the arrival of a packet, a host system processes thepacket, determines the packet's underlying session, and updates anexisting session to which the arrived packet belongs. Processing onepacket at a time enables the host system to better handle a situation inwhich packets from different sessions are shuffled and arrive in arandom manner. It does not, however, take advantage of the fact thatpackets are often sent in bursts (or so called packet troops or packettrains).

There have been efforts to utilize such burst transmission properties toimprove performance. For example, packet classification techniques havebeen applied in routing technology that exploits the behavior of packettrain to accelerate packet routing. Packet classification techniqueshave also been applied for other purposes such as quality of service,traffic metering, traffic shaping, and congestion management. Suchapplications may improve the packet transmission speed across networks.Unfortunately, they do not impact a host system's (at the destination ofthe transmitted packets) capability in re-assembling the receivedpackets coming from a plurality of underlying communication sessions.

A gigabit Ethernet technology known as ‘jumbo frames’ attempted toimprove the performance at a destination. It utilizes “jumbo frames”that increases the maximum packet size from 1518 bytes (the Ethernetstandard size) to 9022 bytes. The goal is to reduce the data unitstransmitted over the communications media and subsequently a networknode may consume fewer CPU resources (overhead) for the same amount ofdata-per-second processed when “jumbo frames” are used. However, dataunits that are merged to form a larger unit are not classified. As aconsequence, at destination, a host system may still need to classifypackets before they can be used to re-assemble the data of specificsessions. Due to that, the overhead used to correctly recover theoriginal data streams may still remain high.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention is further described in terms of exemplaryembodiments, which will be described in detail with reference to thedrawings. These embodiments are non-limiting exemplary embodiments, inwhich like reference numerals represent similar parts throughout theseveral views of the drawings, and wherein:

FIG. 1 depicts a high level architecture which supports classificationbased packet bundle generation and transfer between an I/O controllerand a host, according to embodiments of the present invention;

FIG. 2 depicts the internal structure of an I/O controller, in relationto a host, that is capable of grouping packets into a bundle based onclassification, according to embodiments of the present invention;

FIG. 3 shows an exemplary construct of a packet bundle descriptor,according to an embodiment of the present invention;

FIG. 4 shows an exemplary content of a packet bundle descriptor,according to an embodiment of the present invention;

FIG. 5 depicts the internal structure of a packet grouping mechanism,according to an embodiment of the present invention;

FIG. 6 is an exemplary flowchart of a process, in which a packet bundleis generated based on packet classification and transferred from an I/Ocontroller to a host for processing, according to embodiments of thepresent invention;

FIG. 7 is an exemplary flowchart of an I/O controller, according to anembodiment of the present invention; and

FIG. 8 is an exemplary flowchart of a host, according to an embodimentof the present invention.

DETAILED DESCRIPTION

The processing described below may be performed by a properly programmedgeneral-purpose computer alone or in connection with a special purposecomputer. Such processing may be performed by a single platform or by adistributed processing platform. In addition, such processing andfunctionality can be implemented in the form of special purpose hardwareor in the form of software being run by a general-purpose computer. Anydata handled in such processing or created as a result of suchprocessing can be stored in any memory as is conventional in the art. Byway of example, such data may be stored in a temporary memory, such asin the RAM of a given computer system or subsystem. In addition, or inthe alternative, such data may be stored in longer-term storage devices,for example, magnetic disks, rewritable optical disks, and so on. Forpurposes of the disclosure herein, a computer-readable media maycomprise any form of data storage mechanism, including such existingmemory technologies as well as hardware or circuit representations ofsuch structures and of such data.

FIG. 1 depicts a high level architecture 100 that supportsclassification based packet bundle generation and transfer between anI/O controller 110 and a host 140, according to embodiments of thepresent invention. Upon receiving packets, the I/O controller 110activates a classification based packet transferring mechanism 120 toclassify received packets according to some classification criterion,group classified packets into packet bundles, and then transfer thepacket bundles to the host 140 at appropriate times. Upon receiving apacket bundle, the host 140 processes the packet bundle as a whole.

A packet bundle 130 is transferred from the I/O controller 110 to thehost 140 via a generic connection. The I/O controller 110 and the host140 may or may not reside at a same physical location. The connectionbetween the I/O controller 110 and the host 140 may be realized as awired connection such as a conventional bus in a computer system or aperipheral component interconnect (PCI) or as a wireless connection.

The classification-based packet transferring mechanism 120 organizespackets into packet bundles, each of which may comprise one or morepackets that are uniform with respect to some classification criterion.For example, the classification-based packet transferring mechanism 120may classify received packets according to their session numbers. Inthis case, packets in a single packet bundle all have the same sessionnumber.

An optional “classification ID” may be assigned to this packet bundleand provided to the host. The classification-based packet transferringmechanism 120 may classify received packets into one of a fixed numberof sessions. If the number of sessions being received exceeds the numberof sessions that the classification-based packet transferring mechanism120 can indicate, one or more sessions may be marked with the samesession identification.

When the packet bundle 130 is transferred to the host 140, a packetbundle descriptor may also be transferred with the packet bundle 130that specifies the organization of the underlying packet bundle. Such apacket bundle descriptor may provide information such as the number ofpackets in the bundle and optionally the session number of the bundle.The descriptor may also include information about individual packets.For example, a packet bundle descriptor may specify the length of eachpacket. The information contained in a packet bundle descriptor may bedetermined based on application needs.

When a packet bundle is constructed from classified packets, theclassification-based packet transferring mechanism 120 determines anappropriate timing to transfer the packet bundle. When there are aplurality of packet bundles ready to be transferred, theclassification-based packet transferring mechanism 120 may alsodetermine the order in which packet bundles are transferred according tosome pre-specified conditions. For example, the classification basedpacket transferring mechanism 120 may determine the order oftransferring based on the priority tagging of the underlying packets. Itmay schedule a packet bundle whose packets have a higher priority to betransferred prior to another packet bundle whose packets have a lowerpriority. The classification based packet transferring mechanism 120 mayalso transfer the packet bundles into multiple, separate, and predefinedreceive queues based on the classification and/or priority of the packetbundles.

FIG. 2 depicts the internal structure of the I/O controller 110 inrelation to the host 140, according to embodiments of the presentinvention. The I/O controller 110 comprises a packet receiver 210, apacket queue 220, a packet queue allocation mechanism 230, and theclassification-based packet transferring mechanism 120 which includes apacket classification mechanism 240, a transfer scheduler 250, and apacket grouping mechanism 260. The packet queue allocation mechanism 230may allocate one or more packet queues as storage space for receivedpackets. Upon intercepting incoming packets, the packet receiver 210buffers the received packets in the packet queue 220.

The packet queue 220 may be implemented as a first in and first out(FIFO) mechanism. With this implementation, packets in the FIFO may beaccessed from one end of the queue (e.g., front end) and the incomingpackets are buffered from the other end of the queue (e.g., rear end).In this way, the packet that is immediately accessible may be defined asthe one that has been in the queue the longest. When the packet receiver210 intercepts incoming packets, it populates the received packets inthe packet queue 220 by inserting the packets to the rear end of thepacket queue 220. The packet queue 220 may also be realized as acollection of FIFOs.

The packet queue 220 may be realized either within the I/O controller110 (as shown in FIG. 2) or within the memory of the host 140 (notshown). The packet queue 220 provides a space for packet look ahead(will be discussed later) and for manipulating the received packets,including re-ordering the packets according to some classificationcriterion. The size of the packet buffer 220 may be determined based onapplication needs and such system configuration factors as, for example,speed requirements.

The classification-based packet transferring mechanism 120 may accessthe received packets from the front end of the packet queue 220. Toclassify received packets according to, for example, session numbers,the classification-based packet transferring mechanism 120 maydynamically determine a session number for classification purposes froma buffered packet that is immediately accessible in the front of thepacket queue 220. Such a session number may be extracted from thebuffered packet.

With a classification criterion (e.g., a session number), the packetclassification mechanism 240 may look ahead of the received packetsbuffered in the packet queue 220 and classifying them according to thesession number. The size of the packet queue 220 may constrain the scopeof the classification operation (i.e., how far to look ahead in thepacket stream) and may be determined based on particular applicationneeds or other system configuration factors. For instance, assume an I/Ocontroller is operating at a speed of one gigabits-per-second, then one(1) 1500 byte packet can be received every 12 usec. Further assume thatan inter-packet-gap is around 24 usec between packets of the samenetwork session. Under such operational environment, the size of thepacket queue 220 may be required to be big enough to store and classifyat least four (4) 1500 byte packets (a total of 6000 bytes)simultaneously to support the speed requirement.

As mentioned earlier, the packet queue 220 may be realized differently.For example, it may be implemented as an on-chip FIFO within the I/Ocontroller 110. In this case, the above described example will need apacket buffer (or FIFO) of at least 6000 bytes. Today's high-speedEthernet controllers can adequately support 32K or larger on-chip FIFOs.

When the packet queue 220 is implemented within the I/O controller 110,the packet classification mechanism 240 in the classification-basedpacket transferring mechanism 120 looks ahead and classifies the packetswithin the FIFO on the I/O controller. According to the classificationoutcome, the order of the received packets may be re-arranged in thepacket queue 220 (e.g., arrange all the packets with a same sessionnumber in a sequence). To deliver such processed packets to the host140, the packets are retrieved from the queue and then sent to the host140.

If the packet queue 220 is realized on the host 140, the packetclassification mechanism 240 may perform classification within thememory of the host 140. In this case, when the classification is done,to deliver the processed packets to the host 140 for further processing,the processed packets may not need to be moved and the host 140 may besimply notified of the processed packets in the memory.

When classification is complete, all packets that are classified as asingle group have, for example, the same session number and are arrangedaccording to, for instance, the order they are received. This group ofpackets may be delivered to the host 140 as one unit identified by thesession number. The transfer scheduler 250 may determine both the timingof the deliver and form (sending the packets from the I/O controller 110to the host 140 or sending simply a notification to the host 140) of thedelivery. The transfer scheduler 250 may decide the delivery timingaccording to the priority associated with the packets, wherein suchpriority may be tagged in the packets. A packet group with a higherpriority may be delivered before another packet group that has a lowerpriority.

When there are multiple FIFOs, the transfer scheduler 250 may alsoschedule the transfer of classified packets from different FIFOs alsothrough priority scheduling. In addition, an on-going transfer of agroup of packets that has lower priority packets may be pre-empted sothat another group of packets that has higher priority packets can betransferred to the host 140 in a timely fashion. The transfer of thepre-empted group may be restored after the transfer of the higherpriority group is completed.

The packet receiver 210 and the mechanisms such as the packetclassification mechanism 240 and the packet grouping mechanism 260 mayshare the resource of the packet queue 220. The process of populatingthe buffered packets and the process of processing these packets (e.g.,classifying and grouping) may be performed asynchronously. For example,the packet receiver 210 may push received packets into a FIFO and thepacket classification mechanism 240 may pop packets from the same FIFO.

When a transfer schedule is determined, the transfer scheduler 250notifies the packet grouping mechanism 260, which subsequently generatesa packet bundle 130 with a corresponding packet bundle descriptor. Thepacket bundle 130 is a collection of packets that are uniform in thesense that they all have the same characteristic with respect to someclassification criterion (e.g., all have the same session number, orhash result of session number or other fields). The packets in a packetbundle may be arranged in the order they are received. The correspondingpacket bundle descriptor is to provide information about the underlyingpacket bundle. Such information facilitates the host 140 to process theunderlying packet bundle.

FIG. 3 shows an exemplary construct 300 of a packet bundle descriptor,according to an embodiment of the present invention. A packet bundledescriptor may comprise an overall bundle descriptor 310 and acollection of packet descriptors 320, 330, . . . , 340. The bundledescriptor 310 may include information about the organization of theunderlying packet bundle such as the number of packets. A packetdescriptor may provide information related to each individual packetsuch as the packet length.

FIG. 4 shows exemplary content of the overall bundle descriptor 310,according to an embodiment of the present invention. The overall bundledescriptor 310 may specify the number of packets 410 contained in theunderlying packet bundle and some identifying characteristics associatedwith the packet bundle such as a session identification 450 and apriority level 480. The host 140 may use such information duringprocessing. For example, the host 140 may update an existing sessionusing a received packet bundle according to the session number providedin the corresponding packet bundle descriptor. Based on the number ofpackets 410, the host 140 may, for instance, update the correspondingexisting session with a correct number of total number of packetswithout having to process each individual packets in the bundle.

The packet descriptors 320, 330, . . . , 340 are associated withindividual packets in a packet bundle. They may include such informationas packet identification (ID) 420, packet status 425, packet length 430,packet buffer address 435, or out-of-order indicator 440. For example,the packet ID 420 identifies a packet in a packet bundle using asequence number identifying the position of the packet in the bundle.

To generate a packet bundle and its corresponding packet bundledescriptor, the packet grouping mechanism 260 may invoke differentmechanisms. FIG. 5 illustrated an exemplary internal structure of thepacket grouping mechanism 260. It includes a packet bundle generator 510and a packet bundle descriptor generator 520. The former is responsiblefor creating a packet bundle based on classified packets and the latteris responsible for constructing the corresponding packet bundledescriptor.

The transfer scheduler 250 delivers a packet bundle to the host 140 withproper description at an appropriate time. The delivery may be achievedby notifying the host 140 that a packet bundle is ready to be processedif the packet queue 220 is implemented in the host's memory.Alternatively, the transfer scheduler 250 sends the packet bundle to thehost 140. Whenever a packet bundle is delivered, the transfer scheduler250 sends the corresponding packet bundle descriptor 300 to the host140.

The host 140 comprises a notification handler 270, a packet bundleprocessing mechanism 280, and a session update mechanism 290. Thenotification handler 270 receives and processes a notification from theI/O controller 110. Based on the notification, the packet bundleprocessing mechanism 280 further processes the received packet bundle.Since all the packets within a packet bundle are similar, the packetbundle processing mechanism 280 treats the bundle as a whole.Furthermore, the session update mechanism 290 utilizes the receivedpacket bundle by its entirety to update an existing session.

FIG. 6 is an exemplary flowchart of a process, in which a packet bundleis generated based on packet classification and transferred from the I/Ocontroller 110 to the host 140, according to embodiments of the presentinvention. Packets are received first at 610. Such received packets arepopulated or buffered at 620 in the packet queue 220. The bufferedpackets are subsequently classified at 630. The transfer scheduler 250then determines, at 640, which classified group of packets is to betransferred next.

According to a transfer schedule, a packet bundle and its correspondingpacket bundle descriptor are generated, at 650, based on classifiedpackets and then sent, at 660, to the host 140. Upon receiving, at 670,the packet bundle and the corresponding packet bundle descriptor, thehost 140 processes, at 680, the packet bundle according to theinformation contained in the corresponding packet bundle descriptor.

FIG. 7 is an exemplary flowchart of the I/O controller 110, according toan embodiment of the present invention. Packets are received first at710 and populated, at 720, in the packet queue 220. To classify bufferedpackets, a session number is identified, at 730, as a dynamicclassification criterion. Based the classification criterion, the packetclassification mechanism 240 classifies the buffered packets at 740. Thetransfer scheduler 250 then schedules, at 750, to transfer a packetbundle according to some pre-defined criterion. When a transfer decisionis made, the packet grouping mechanism 260 generates, at 760 and 770, apacket bundle based on classified packets and a corresponding packetbundle descriptor. Such generated packet bundle and its descriptor arethen transferred, at 780, to the host 140.

FIG. 8 is an exemplary flowchart of the host 140, according to anembodiment of the present invention. Upon receiving a packet bundle andits corresponding packet bundle descriptor at 810, the host 140 parses,at 820, the packet bundle descriptor to extract useful information. Toupdate an appropriate session using the packets in the received packetbundle, the host 140 identifies, at 830, the session number of thepacket bundle. Based on the session number, the host 140 updates anexisting session using the received packet bundle.

While the invention has been described with reference to the certainillustrated embodiments, the words that have been used herein are wordsof description, rather than words of limitation. Changes may be made,within the purview of the appended claims, without departing from thescope and spirit of the invention in its aspects. Although the inventionhas been described herein with reference to particular structures, acts,and materials, the invention is not to be limited to the particularsdisclosed, but rather can be embodied in a wide variety of forms, someof which may be quite different from those of the disclosed embodiments,and extends to all equivalent structures, acts, and, materials, such asare within the scope of the appended claims.

1-20. (canceled)
 21. A classification based packet transferringmechanism, comprising: a packet classification mechanism for classifyinga plurality of packets to generate classified packets; a packet groupingmechanism for generating a packet bundle using the classified packetsand for constructing a corresponding packet bundle descriptor; and atransfer scheduler for scheduling, determined based on a pre-determinedcriterion, to transfer the packet bundle and the corresponding packetbundle descriptor.
 22. The mechanism according to claim 21, wherein thepacket grouping mechanism includes: a packet bundle generator forgenerating the packet bundle based on the classified packets; and apacket bundle descriptor generator for constructing the packet bundledescriptor. 23-32. (canceled)
 33. The classification based packettransferring mechanism of claim 21, wherein the transfer schedulertransfers the packet bundle and corresponding packet bundle descriptoraccording to a priority that is tagged in one of the plurality ofpackets.
 34. The classification based packet transferring mechanism ofclaim 21, wherein the transfer scheduler may preempt an on-goingtransfer of packets to transfer the packet bundle and the correspondingpacket bundle descriptor.
 35. The classification based packettransferring mechanism of claim 22, wherein the packet bundle descriptorincludes an overall bundle descriptor and a plurality of packetdescriptors.
 36. The classification based packet transferring mechanismof claim 35, wherein the overall packet bundle descriptor includesinformation about the underlying packet bundles including a number ofpackets.
 37. The classification based packet transferring mechanism ofclaim 36, wherein the overall packet bundle descriptor includes a numberof packets, a session identification, and a priority level.
 38. Theclassification based packet transferring mechanism of claim 35, whereineach of the plurality of packet descriptors includes at least two of apacket ID, a packet status, a packet length, a packet buffer address, oran out-of-order indicator.
 39. A classification based packettransferring mechanism, comprising: a plurality of first-in first-out(FIFO) buffers to form a packet queue, the plurality of FIFO bufferspopulated with a plurality of packets; a packet classification mechanismfor classifying the plurality of packets to generate classified packets;a transfer scheduler for scheduling, determined based on apre-determined criterion, the transfer of a packet bundle and acorresponding packet bundle descriptor; and a packet grouping mechanismfor generating the packet bundle using the classified packets and forconstructing the corresponding packet bundle descriptor.
 40. Theclassification based packet transferring mechanism of claim 39, whereinthe packet classification mechanism reorders the classified packetsaccording to common classifications before the packet grouping mechanismgenerates the packet bundle or the transfer scheduler schedules thetransfer of the classified packets.
 41. The classification based packettransferring mechanism of claim 39, wherein the transfer schedulerschedules the transfer of the classified packets from the plurality ofFIFO buffers according to a priority of the classified packets in theplurality of FIFO buffers.
 42. The classification based packettransferring mechanism of claim 39, wherein the packet classificationmechanism looks ahead in the plurality of FIFO buffers and classifiesthe plurality of packets according to a session number.
 43. A method toclassify packets that are to be transferred to a host, comprising:classifying a plurality of packets to generate a plurality of classifiedpackets; scheduling a transfer of the plurality of classified packets,based on a pre-determined criterion; and generating a packet bundleusing the plurality of classified packets and constructing acorresponding packet bundle descriptor using the plurality of classifiedpackets.
 44. The method of claim 43, wherein the packet bundledescriptor includes an overall bundle descriptor, which includesinformation about the organization of the underlying packet bundle, anda plurality of packet descriptors, the plurality of packet descriptorsproviding information related to each individual packet of the pluralityof packets.
 45. The method of claim 44, where each packet descriptorincludes information including a packet identification, a packet status,a packet length, or a packet buffer address.
 46. The method of claim 43,wherein the transfer scheduler transmits the packet bundle and thepacket bundle descriptor to a host.
 47. A classification based packettransferring mechanism in a host computer, comprising: a packet queue inthe host computer including a plurality of packets; a packetclassification mechanism to classify a plurality of packets in a memoryof the host computer to generate a plurality of classified packets; anda packet grouping mechanism to generate a packet bundle using theplurality of classified packets and to construct a corresponding packetbundle descriptor using the plurality of classified packets.
 48. Theclassification based packet transferring mechanism in the host computerof claim 47, further including notifying the host computer that thepacket bundle has been generated.
 49. The classification based packettransferring mechanism in the host computer of claim 47, wherein thepacket classification mechanism rearranges an order of the classifiedpackets in the packet queue according to common classifications.
 50. Theclassification based packet transferring mechanism in the host computerof claim 47, wherein the packet bundle descriptor includes an overallbundle descriptor and a collection of packet descriptors and the overallpacket bundle descriptor includes a number of packets, a sessionidentification, and a priority level.